package syntaxtree;

import Translate.Exp;
import visitor.IRTreeVisitor;
import visitor.Visitor;
import visitor.TypeVisitor;

public class Identifier {

    public String s;

    public Identifier(String as) {
        s = as;
    }

    public void accept(Visitor v) {
        v.visit(this);
    }

    public Type accept(TypeVisitor v) {
        return v.visit(this);
    }

    public Exp accept(IRTreeVisitor v) {
        return v.visit(this);
    }

    public String toString() {
        return s;
    }

}
